package com.bite.www;

import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-17
 * Time: 17:15
 */
public class Rect extends Shape implements Comparable{
    int a=1;
    String name;
    @Override
    public void draw(){
        System.out.println("矩形");
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Rect rect = (Rect) o;
        return a == rect.a;
    }

    @Override
    public int hashCode() {
        return Objects.hash(a);
    }
     final class a{

    }

    @Override
    public int compareTo(Object o) {
        return 0;
    }
}
